package com.atguigu.cloud;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * @Author liking
 * @Description
 * @Date 2025/4/25
 * @Version 1.0
 */
@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignClients
public class SpringCloudAlibabaMain83 {
    public static void main(String[] args) {
        SpringApplication.run(SpringCloudAlibabaMain83.class, args);
    }
    //启动报错；Caused by: java.lang.IllegalStateException: Method PayFeignSentinelApi#getPayByOrderNo(String) not annotated with HTTP method type (ex. GET, POST)
    //原因：springboot  和 springcloud 版本太高，和 alibaba 的 sentinel 不兼容，（阿里裁了很多人，没人干活了）
    //解决：在父 pom 修改 整体的 boot 和 cloud 版本号，降低版本号
}